package com.testitems.service.apiaddrconfig;

import com.baomidou.mybatisplus.extension.service.IService;
import com.testitems.common.web.page.PageInfo;
import com.testitems.config.security.UserInfo;
import com.testitems.controller.config.apiaddr.dto.ApiAddrAddRequest;
import com.testitems.controller.config.apiaddr.dto.ApiAddrSearchRequest;
import com.testitems.controller.config.apiaddr.dto.ApiAddrUpdateRequest;
import com.testitems.repo.entity.ApiAddrConfig;

import java.util.List;

/**
 * <p>
 * 接口地址配置 服务类
 * </p>
 *
 * @author GFH
 * @since 2021-11-23
 */
public interface IApiAddrConfigService extends IService<ApiAddrConfig> {

    PageInfo<ApiAddrConfig> search(UserInfo userInfo, ApiAddrSearchRequest request);

    ApiAddrConfig getApiAddrConfigByName(String name);

    List<ApiAddrConfig> getApiAddrList();
    void add(UserInfo userInfo, ApiAddrAddRequest request);

    void updateById(Integer id, UserInfo userInfo, ApiAddrUpdateRequest request);

    void logicDelete(UserInfo userInfo, Integer id);
}
